package com.qf.service.impl;

import com.qf.dao.IntegralDao;
import com.qf.pojo.Integral;
import com.qf.service.IntegralService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IntegralServiceImpl implements IntegralService {
    @Resource
    IntegralDao integralDao;
    @Override
    public List<Integral> findAll() {
        return integralDao.findAllIntegral();
    }

    @Override
    public List<Integral> findAllByMonth() {
        return integralDao.findAllIntegralByMonth();
        }
    }
